<!-- head -->
<div class="row wrapper border-bottom white-bg page-heading">
    <div class="col-md-12">
        <ol class="breadcrumb">
            <li><a>主页</a></li>
            <li><a>超级兑</a></li>
            <li class="active"><strong>积分产品类别详情</strong></li>
        </ol>
    </div>
</div>

<!-- content-->
<div class="wrapper wrapper-content animated fadeIn"
     ng-controller="productTypeEditCtrl">
    <form class="form-horizontal" id="form1" name="horizontalCard">
        <div class="form-group">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <div class="ibox-title">
                        <h5>基本资料</h5>
                    </div>
                    <div class="row">
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><i class="red_req">*</i>机构名称:</label>
                            <div class="col-sm-3">
                                <select class="form-control" name="orgCode" ng-model="info.orgCode" disabled ng-options="x.value as x.text for x in orgList"/>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><i class="red_req">*</i>产品类别:</label>
                            <div class="col-sm-3">
                                <input type="text" class="form-control" name="typeName" readonly ng-model="info.typeName">
                                <div class="req_mesg" ng-show="horizontalCard.typeName.$dirty && horizontalCard.typeName.$invalid">
                                    <span ng-show="horizontalCard.typeName.$error.required">产品类别不能为空</span>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">视频地址:</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" readonly ng-model="info.videoUrl">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">兑换教程:</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" readonly ng-model="info.courseUrl">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">兑换入口:</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" readonly ng-model="info.bankUrl">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">兑换入口跳转提示语:</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" readonly ng-model="info.hint">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><i class="red_req">*</i>报单方式:</label>
                            <div class="col-sm-2">
                                <select class="form-control"  name="declaraType" readonly ng-model="info.declaraType" ng-options="x.value as x.text for x in declaraTypeSelect"/>
                                <div class="req_mesg" ng-show="horizontalCard.declaraType.$dirty && horizontalCard.declaraType.$invalid">
                                    <span ng-show="horizontalCard.declaraType.$error.required">报单方式不能为空</span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="ibox-content">
                    <div class="ibox-title">
                        <h5>资料配置</h5>
                    </div>
                    <div class="form-group">
                        <label class="col-lg-2 control-label">请选择产品配置:</label>
                        <div class="col-lg-10">
                            <div class="col-sm-2" style="margin-top:5px" data-ng-repeat="item in checkboxList">
                                <input type="checkbox" name="{{item.propertyCode}}" disabled ng-checked="item.configValue" ng-model="item.configValue"  />
                                <span>{{item.propertyDesc}}</span>
                            </div>
                        </div>
                    </div>
                    <div data-ng-repeat="imgItem in fileList" >
                        <div class="form-group">
                            <label class="col-sm-2 control-label">{{fileListDefault[$index].propertyDesc}}:</label>
                            <div class="col-img" ng-if="fileListDefault[$index].configValue!=null&&fileListDefault[$index].configValue!=''" >
                                <a href="{{fileListDefault[$index].configValue}}" fancybox rel="group">
                                    <img width="250px" height="150px" ng-src="{{fileListDefault[$index].configValue}}"/>
                                </a>
                            </div>
                        </div>
                    </div>
                    <div class="form-group" ng-repeat="item in textList">
                        <label class="col-sm-2 control-label">{{item.propertyDesc}}:</label>
                        <div ng-if="item.codeType=='text'">
                            <div class="col-sm-5">
                                <input class="form-control" name="{{item.propertyCode}}" readonly ng-model="item.configValue">
                            </div>
                        </div>
                        <div ng-if="item.codeType!='text'">
                            <div class="col-lg-5">
                                <textarea type="text" class="form-control" summernote readonly ng-model="item.configValue">
                                </textarea>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-lg-12 bgff">
                <div class="col-sm-12">
                    <div class="col-lg-3"></div>
                    <div class="col-sm-6">
                        <a class="btn btn-primary4" ui-sref="exchange.productType" >返回</a>
                    </div>
                </div>
            </div>
        </div>
    </form>
</div>